import ItemUtil from '@/ItemUtil';
import RandomUtil from '@/RandomUtil';
export default class Item_骷髅大棒骨 {
    static id = 'C009';
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {}
    constructor() {
        EventManager.onTakeAttack(Item_骷髅大棒骨.spellEffect);
    }
    static spellEffect(d: DamageEventData) {
        if (!ItemUtil.isUnitHasItem(d.source, Item_骷髅大棒骨.id)) return;
        let r = RandomUtil.randomPercent();
        if (r > 0.11) return;
        DamageSystemInstance.applyPhysicalDamage(d.target, d.source, 150);
        StunSystemIntance.stun(d.target, 1.5);
    }
}
